package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

//申请列表
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("tb_apply_loan")
public class ApplyLoanModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//申请贷款表ID
    private String name;//姓名
    private String phone;//手机号
    private String notes;//备注
    private Integer loanId;//贷款信息表ID
    private String openId;//微信用户ID
    private String comName;//企业名称
    private Integer areaId;//地区ID
    private String identity;//身份
    @TableField(exist = false)
    private String loanIdText;//贷款信息表转义

    @TableField(exist = false)
    private String areaText;//贷款信息表转义
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
